<!--
 * @Description: Description
 * @Author: Kerwin
 * @Date: 2025-03-24 14:06:17
 * @LastEditTime: 2025-03-24 17:10:16
 * @LastEditors:  Please set LastEditors
-->
<template>
    <view class="container">
        <view class="box" v-for="item in titleList" @click='handleClick(item.title)'>{{ item.title }}</view>
    </view>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const titleList = ref([{
    title: '红包活动设置',
},
{
    title: '优惠券管理',
}
]
)
const handleClick = (e: string) => {
    console.log(e, '点击了');
    switch (e) {
        case '红包活动设置':
            uni.navigateTo({
                url: '/packageE/pages/hongbaoSetting/index'
            })
            break;
        case '优惠券管理':
            uni.navigateTo({
                url: '/packageE/pages/discountCoupon/index'
            })

            break;

        default:
            break;
    }

}




</script>

<style lang="scss" scoped>
.container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;

    .box {
        // width: 100%;
        height: 120rpx;
        margin: 20rpx 0;
        text-align: center;
        line-height: 120rpx;
        background: #fff7e6;

    }
}
</style>
